package br.home.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class UtilsClass {
	
//	public static String getData(String format){
//		Calendar calendar = Calendar.getInstance();
//		SimpleDateFormat sdf = new SimpleDateFormat(format);
//		return sdf.format(calendar.getTime());
//	}
	
	public static String getData(){
		Calendar calendar = Calendar.getInstance();
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		return sdf.format(calendar.getTime()); 
	}
	public static String getTime(){
		Calendar calendar = Calendar.getInstance();
		SimpleDateFormat sdf = new SimpleDateFormat("hh:mm:ss");
		return sdf.format(calendar.getTime()); 
	}
}
